package com.ruoyi.project.module.shouji1.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.module.shouji1.mapper.Shouji1Mapper;
import com.ruoyi.project.module.shouji1.domain.Shouji1;
import com.ruoyi.project.module.shouji1.service.IShouji1Service;
import com.ruoyi.common.support.Convert;

/**
 * 用户 服务层实现
 * 
 * @author ruoyi
 * @date 2018-11-12
 */
@Service
public class Shouji1ServiceImpl implements IShouji1Service 
{
	@Autowired
	private Shouji1Mapper shouji1Mapper;

	/**
     * 查询用户信息
     * 
     * @param userId 用户ID
     * @return 用户信息
     */
    @Override
	public Shouji1 selectShouji1ById(Integer userId)
	{
	    return shouji1Mapper.selectShouji1ById(userId);
	}
	
	/**
     * 查询用户列表
     * 
     * @param shouji1 用户信息
     * @return 用户集合
     */
	@Override
	public List<Shouji1> selectShouji1List(Shouji1 shouji1)
	{
	    return shouji1Mapper.selectShouji1List(shouji1);
	}
	
    /**
     * 新增用户
     * 
     * @param shouji1 用户信息
     * @return 结果
     */
	@Override
	public int insertShouji1(Shouji1 shouji1)
	{
	    return shouji1Mapper.insertShouji1(shouji1);
	}
	
	/**
     * 修改用户
     * 
     * @param shouji1 用户信息
     * @return 结果
     */
	@Override
	public int updateShouji1(Shouji1 shouji1)
	{
	    return shouji1Mapper.updateShouji1(shouji1);
	}

	/**
     * 删除用户对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteShouji1ByIds(String ids)
	{
		return shouji1Mapper.deleteShouji1ByIds(Convert.toStrArray(ids));
	}
	
}
